package cn.deschen.eshop.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author hanbin_chen
 * @Description 用户启动类
 * @DateTime 2021/1/10 20:26
 * @Version V1.0.0
 */
@SpringBootApplication(scanBasePackages = "cn.deschen.eshop")
@EnableTransactionManagement(proxyTargetClass = true)
// 扫描mapper和dao操作底层数据库的类
@MapperScan(basePackages = {"cn.deschen.eshop.*.mapper", "cn.deschen.eshop.*.dao"})
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }

}
